import { createRouter, createWebHashHistory } from "vue-router";

import Home from '../views/Home.vue';

const router = createRouter({
    history:createWebHashHistory(import.meta.env.BASE_URL),
    routes:[
        {
            path: '/',
            name: 'home',
            component: Home,
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/home',
            name: '首页',
            component: Home,
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/about',
            name: '关于我们',
            component: ()=> import('../views/About.vue'),
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/main',
            name: '主营业务',
            component: ()=> import('../views/Main.vue'),
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/resource',
            name: '资源展示',
            component: ()=> import('../views/resource.vue'),
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/infomation',
            name: '联系我们',
            component: ()=> import('../views/Infomation.vue'),
            meta: {
                requireAuth: false
            },
        },
    ]
})

export default router;